home *** CD-ROM | disk | FTP | other *** search
/ 100 Plus Great Games 2 / 100PLUSV2.BIN / games / TowerOfHanoy.dxr / 00036_Game Behavior 3.ls < prev    next >
Encoding:
Text File  |  2002-01-25  |  351 b   |  18 lines

  1. global gLeftTowerList, gCenterTowerList, gRightTowerList, gReleaseBall, gLevel, gDiscNum, gMoves, gPlaced, gMoveFix
  2.  
  3. on exitFrame
  4.   MovePiece()
  5.   go(the frame)
  6. end
  7.  
  8. on mouseUp
  9.   if gReleaseBall = 0 then
  10.     puppetSound(2, "drop piece")
  11.     gReleaseBall = 1
  12.     sprite(gDiscNum).locZ = gDiscNum
  13.     gMoveFix = 1
  14.     stack()
  15.     checkwin()
  16.   end if
  17. end
  18.